﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SchemaMonitor.json
{
    public class CSoftUser : CSoft
    {
        //Hardcoded data
        private const string TYPE = "user";
        private const string API  = "me";

        //Type
        public static readonly CType Type = CType.Cache.GetOrCreate_Manual(TYPE, API);

        //Constructors
        public CSoftUser(CNodeBasic root, CUser c) : base(root, c) { }


        //Existing (FB Schema)
        public string Name { get { return GetStr("name"); } }
        public string FirstName { get { return GetStr("first_name"); } }
        public string LastName { get { return GetStr("last_name"); } }
        public string Link { get { return GetStr("link"); } }
        public string Timezone { get { return GetStr("timezone"); } }
        public string IsVerified { get { return GetStr("verified"); } }


        //Custom (UI switches)
        public bool ShowLogging {  get {  return GetBool("ShowLogging");} set { SetBool("ShowLogging", value);} }
        public bool ShowContacts {  get {  return GetBool("ShowContacts");} set { SetBool("ShowContacts", value);} }
    }
}
